package thinkingJava.chapter14;

import java.util.ArrayList;
import java.util.List;

public class Pets {
	public static final PetCreater creater = new LiteralPetCreater();
	public static ArrayList<Pet> arrayList(int size) {
		return creater.arrayList(size);
	}
	public static Pet[] createArray(int size) {
		return creater.createArray(size);
	}
	public static Pet randomPet() {
		return creater.randomPet();
	}
	public static void main(String[] args) {
		List<Pet> list =  arrayList(7);
		System.out.println(list);
	}
}
